namespace UserService.Domain.Shared.Cache;

public static class UserServiceCacheKeys
{
    private const string Prefix = "UserService:";
        
    /// <summary>
    /// 在线用户缓存键前缀
    /// </summary>
    public const string OnlineUsers = Prefix + "OnlineUsers";
        
    /// <summary>
    /// 获取用户好友列表缓存键
    /// </summary>
    public static string UserFriends(Guid userId) => $"{Prefix}UserFriends:{userId}";
        
    /// <summary>
    /// 用户信息缓存键
    /// </summary>
    public static string UserInfo(Guid userId) => $"{Prefix}UserInfo:{userId}";
}